<?php

class UserGroup extends Eloquent {

	 protected $table = 'user_group';

	 public function userPermission() {
	 	// Model Class Name, Foreign Key, Local Key
	 	return $this->hasMany('UserPermission', 'USER_GROUP_id', 'id');
	 }

	 public function  user() {
	 	// Model Class Name, Foreign Key, Local Key
	 	return $this->hasMany('User', 'USER_GROUP_id', 'id');
	 }
}